package com.example.javagobang.Service;

import com.example.javagobang.mapper.UserInfoMapper;
import com.example.javagobang.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    public UserInfo selectByName(String username){
        return userInfoMapper.selectByName(username);
    }

    public void insert(UserInfo userInfo){
        userInfoMapper.insert(userInfo);
    }
}
